package com.blue.login.controller;

import com.blue.base.model.ResultDTO;
import com.blue.login.dto.LoginDto;
import com.blue.login.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/api/login")
@RestController
public class LoginController {
    @Autowired
    LoginService loginService;
    @PostMapping("/register")
    public ResultDTO<Object> register(@RequestBody LoginDto loginDto){
        ResultDTO<Object> resultDTO = new ResultDTO<>();
        try {
//            loginService.register(loginDto);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
        return resultDTO;
    }
}
